<?php

return [
    "add"=>"insert into blog.`user`(uname,passwd,pri) values(?,?,?)",
    "check_user"=>"select uname from blog.`user` where uname = ? ",
    "login"=>"select uname,passwd from blog.`user` where uname = ? and passwd = ? ",
    "lists"=>"SELECT id,title FROM blog.articel LIMIT 1,10",
    "addnews"=>"INSERT INTO blog.articel(id,title,pulisher,description) VALUES(?,?,?,?);",
    "maxid"=>"SELECT MAX(id) FROM blog.articel ",
    "delnews"=>"DELETE FROM blog.articel WHERE id = ?"
];